# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=cocom
pkgver=0.996
pkgrel=1
pkgdesc="Toolset for creation of compilers and interpreters"
arch=('i686' 'x86_64')
url="http://expat.sourceforge.net/"
license=('custom')
groups=('msys2-devel')
depends=()
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('c95c5504fd76f4e05c4155ed840cc756')

prepare() {
  cd ${srcdir}/${pkgname}-${pkgver}/REGEX

  autoreconf -fi
}

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
  make DESTDIR=${srcdir}/dest install
}

check() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make check
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
}
